import request from '@/utils/request'

// 查询序列配置列表
export function listConf(query) {
  return request({
    url: '/wms/sequence/list',
    method: 'get',
    params: query
  })
}

// 查询序列配置详细
export function getConf(id) {
  return request({
    url: '/wms/sequence/' + id,
    method: 'get'
  })
}

// 新增序列配置
export function addConf(data) {
  return request({
    url: '/wms/sequence',
    method: 'post',
    data: data
  })
}

// 修改序列配置
export function updateConf(data) {
  return request({
    url: '/wms/sequence',
    method: 'put',
    data: data
  })
}

// 删除序列配置
export function delConf(id) {
  return request({
    url: '/wms/sequence/' + id,
    method: 'delete'
  })
}

// 导出序列配置
export function exportConf(query) {
  return request({
    url: '/wms/sequence/export',
    method: 'get',
    params: query
  })
}